import axios from 'axios'

const request = axios.create({
    // baseURL: "http://localhost:3000"
    baseURL: "/api"
})

// request.interceptors.request.use(config => {

//     const token = localStorage.getItem("token")

//     config.params = { ...config.params, token: "36488a6d-7a86-4cda-8d7e-63adb327ee2b" }

//     config.data = { ...config.data, token: "36488a6d-7a86-4cda-8d7e-63adb327ee2b" }
//     return config
// }, err => {
//     return Promise.reject(err)
// })

export default request